'use strict';
module.exports = {
	/**
	 * XXXnameXXX
	 * @url client/vip_roles/kh/getList 前端调用的url参数地址
	 * data 请求参数
	 * @param {String} params1  参数1
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid } = data;
		let res = { code: 0, msg: "" };
		// 业务逻辑开始-----------------------------------------------------------

		res.data = await vk.baseDao.select({
			dbName: "uce-vip-role", // 表名
			getMain: true, // 是否只返回rows数据，默认false
			pageIndex: 1, // 当前第几页
			pageSize: -1, // 每页条数
			whereJson: { status: true },
			sortArr: [
				{ "name": "weight", "type": "desc" }
			]
		});

		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}
